<template>
  <div class="box">
    <image-shadow :width="200" :src="src1"></image-shadow>
    <image-shadow class-name="22" :src="src4"></image-shadow>
    <image-shadow :shadow-blur="10" :src="src2"></image-shadow>
    <image-shadow shadow-hover :src="src3"></image-shadow>
  </div>
</template>

<script>
import { reactive, toRefs } from 'vue'
export default {
  setup () {
    const state = reactive({
      src1: require('@/assets/images/error.png'),
      src2: require('@/assets/images/bg-2.jpg'),
      src3: require('@/assets/images/bg-3.jpg'),
      src4: require('@/assets/images/success.png')
    })
    return {
      ...toRefs(state)
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  display: flex;
}
.vue-image-shadow + .vue-image-shadow {
  margin-left: 30px;
}
</style>